/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Element Plus 样式覆盖 */
.el-menu {
    border-right: none !important;
}

.el-menu--collapse {
    width: 64px;
}

.el-menu-item,
.el-sub-menu__title {
    height: 50px !important;
    line-height: 50px !important;
}

.el-menu-item.is-active {
    background-color: #1890ff !important;
}

.el-card {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.el-card__header {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 600;
}

.el-table {
    border-radius: 8px;
    overflow: hidden;
}

.el-table th {
    background-color: #fafafa;
    font-weight: 600;
}

.el-button {
    border-radius: 6px;
}

.el-input,
.el-select {
    .el-input__wrapper {
        border-radius: 6px;
    }
}

/* 工具类 */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.ml-10 {
    margin-left: 10px;
}

.mr-10 {
    margin-right: 10px;
}

.p-20 {
    padding: 20px;
}

/* 响应式 */
@media (max-width: 768px) {
    .sidebar-container {
        position: fixed;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s;

        &.is-collapse {
            transform: translateX(0);
        }
    }

    .main-container {
        margin-left: 0;
    }
}